<div class="container" id="danh_muc_bai_viet">
	<div class="row">
		<div class="span4 pull-right text-center">
			<div>
				<%= image_tag "danh_muc_#{@danh_muc.slug}.png"%>
				<h1><%= @danh_muc_ngon_ngu.ten %></h1>
			</div>
		</div>
		<div class="span8 pull-left">
			<div>
				<h3><%= t 'trang___', :trang => @trang %></h3>
			</div>
			<% i = @index_dau_tien + 1%>
			<% for bv in @bai_viets %>
			<div class="top_divider">
				<div class="thu_tu">
					<%= i%><% i += 1%>
				</div>
			</div>
			<div class="post">
				<h2 class="title"><a href="<%= url_for :action=>'index', :danh_muc_slug => @danh_muc.slug, :bai_viet_slug => bv.slug %>"><%= bv.tieu_de %></a></h2>
				<div class="time">
					<%= bv.created_at.strftime("Đăng ngày %d tháng %m năm %Y")%>
				</div>
				<div class="body">
					<%= raw bv.noi_dung.truncate_html 1000, :at_end => "..." %>
				</div>
				<div class="doc_tiep">
					<a href="<%= url_for :action=>'index', :danh_muc_slug => @danh_muc.slug, :bai_viet_slug => bv.slug %>"><%= t 'xem_bai_viet' %></a>
				</div>
			</div>
			<% end %>

			<div class="pager">
				<% if @co_trang_truoc %>
				<li class="previous">
					<a href="<%= url_for :danh_muc => params[:danh_muc], :page => @trang - 1%>">&larr; <%= t 'trang_truoc'%></a>
				</li>
				<%end %>
				<% if @co_trang_sau %>
				<li class="next">
					<a href="<%= url_for :danh_muc => params[:danh_muc], :page => @trang + 1%>"><%= t 'trang_sau'%> &rarr;</a>
				</li>
				<%end %>
			</div>
		</div>

	</div>
</div>

<div>
	<%= render "shared/goi_y_caphe" %>
</div>